package com.taobao.api;

/**
 * 公用常量类。
 * 
 * @author carver.gu
 * @since 1.0, Sep 12, 2009
 */
public abstract class Constants {

	/** TOP默认时间格式 **/
	public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
	
	/** TOP Date默认时区 **/
	public static final String DATE_TIMEZONE = "GMT+8";

	/** UTF-8字符集 **/
	public static final String CHARSET_UTF8 = "UTF-8";

	/** GBK字符集 **/
	public static final String CHARSET_GBK = "GBK";

	/** TOP JSON 应格式 */
	public static final String FORMAT_JSON = "json";
	/** TOP XML 应格式 */
	public static final String FORMAT_XML = "xml";

	/** MD5签名方式 */
	public static final String SIGN_METHOD_MD5 = "md5";
	/** HMAC签名方式 */
	public static final String SIGN_METHOD_HMAC = "hmac";


	/** TOP沙箱环境授权相关地址 */
	//沙箱容器地址(OAuth2协议)
	public static final String SANDBOX_AUTHORIZE_URL = "https://oauth.tbsandbox.com/authorize";
	//沙箱容器地址
	public static final String SANDBOX_CONTAINER_URL = "http://container.api.tbsandbox.com/container";
	//沙箱环境接口访问地址
	public final static String SANDBOX_URL = "http://gw.api.tbsandbox.com/router/rest";
	
	public final static String appKey = "1021237774";
	public final static String appSecret = "sandbox83e3df07563796591090d6520";
	public final static String CALL_BACK_URL = "http://localhost:8080/bocp_studio/taobao/index.tb?method=login";

	/** TOP正式环境授权相关地址 */
	public static final String PRODUCT_AUTHORIZE_URL = SANDBOX_AUTHORIZE_URL;//"https://oauth.taobao.com/authorize";
	public static final String PRODUCT_AUTHORIZE_TOKEN = "https://oauth.tbsandbox.com/token";
	public static final String PRODUCT_CONTAINER_URL = SANDBOX_CONTAINER_URL;//"http://container.open.taobao.com/container";
	public static final String PRODUCT_API_URL = SANDBOX_URL;
	public static final String PRODUCT_SCHEDULE = "http://gw.api.taobao.com/schedule/2.0/json";
	public static final String PRODUCT_TQL = "http://gw.api.taobao.com/tql/2.0/json";
	/** SDK版本号 */
	public static final String SDK_VERSION = "top-sdk-java-20121023";

}
